/***
Datatables Plugin(in v1.3)
***/
.dataTable {
    width: 100% !important;
    clear: both;
    margin-top: 5px;
}
.dataTables_filter label {
    line-height: 32px;
}
.dataTable .row-details {
    margin-top: 3px;
    display: inline-block;
    cursor: pointer;
    width: 14px;
    height: 14px;
}
.dataTable .row-details.row-details-close {
    background: url(../css/img/datatable-row-openclose.png) no-repeat 0 0;
}
.dataTable .row-details.row-details-open {
    background: url(../css/img/datatable-row-openclose.png) no-repeat 0 -23px;
}
.dataTable .details {
    padding: 0 !important;
    background: @B200;
}
.dataTable .details .table {
    margin-top: -1px;
    margin-bottom: 0 !important;
}
.dataTable .details td,
.dataTable .details th {
    padding: 4px;
    background: #e5e5e5 !important;
    border-top: 1px solid #ddd;
}
.dataTable .details tr:nth-child(odd) td,
.dataTable .details tr:nth-child(odd) th {
    background-color: #e5e5e5 !important;
}
.dataTable .details tr:nth-child(even) td,
.dataTable .details tr:nth-child(even) th {
    background-color: #e5e5e5 !important;
}
.dataTable .details tr:hover td,
.dataTable .details tr:hover th {
    background: #ddd !important;
}
.dataTable > thead > tr > th.sorting,
.dataTable > thead > tr > th.sorting_asc,
.dataTable > thead > tr > th.sorting_desc {
    padding-right: 18px;
}
.dataTable .table-checkbox {
    width: 8px !important;
}
.dataTables_wrapper .row:after {
    clear: inherit;
}
.table-scrollable {
    position: relative;
    min-height: 80px;
    thead {
        th {
            vertical-align: top !important;
            &:hover {
                background-color: #ecedeb !important;
            }
        }
        .sorting {
            background: @sort_both no-repeat scroll right 12px #f2f3f2 !important;
        }
        .sorting_asc {
            background: @sort_asc no-repeat scroll right 12px #f2f3f2 !important;
        }
        .sorting_desc {
            background: @sort_desc no-repeat scroll right 12px #f2f3f2 !important;
        }
        .sorting_asc_disabled {
            background: @sort_asc_disabled no-repeat scroll right 12px #f2f3f2 !important;
        }
        .sorting_desc_disabled {
            background: @sort_desc_disabled no-repeat scroll right 12px #f2f3f2 !important;
        }
    }
}

/* datatable style */
.dataTables_empty {
    text-align: center;
    font-size: 18px;
    i {
        color: @H500;
    }
}
.dataTables_length {
    float: left;
    margin: 10px;
}
.dataTables_length select {
    width: 80px !important;
    display: inline;
    height: 36px;
}
.dataTables_length label {
    line-height: 36px;
}
.dataTables_wrapper {
    clear: both;
}
.dataTables_wrapper .bottom {
    display: none;
    background: #f5f5f5;
    height: 55px;
}
.dataTables_wrapper .bottom .dataTables_info {
    float: left;
    top: 0;
    line-height: 36px;
    margin: 10px;
}
.dataTables_wrapper .bottom .dataTables_info .num {
    color: @H500;
    font-weight: bold;
}
.dataTables_wrapper .bottom .pagination {
    margin: 10px;
}
.dataTables_wrapper .bottom .dataTables_paginate {
    float: right;
}
.table-bordered,
.table-bordered > tbody > tr > td,
.table-bordered > tbody > tr > th,
.table-bordered > tfoot > tr > td,
.table-bordered > tfoot > tr > th,
.table-bordered > thead > tr > td,
.table-bordered > thead > tr > th {
    border: 1px solid #eee;
}

/***
Responsive & Scrollable Tables
***/
.table-scrollable {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid #ddd;
    margin: 10px 0 !important;
}
.table-scrollable > .table {
    width: 100% !important;
    margin: 0 !important;
    background-color: #fff;
}

.table-scrollable > .table-bordered {
    border: 0;
}
.table-scrollable > .table-bordered > thead > tr > th:first-child,
.table-scrollable > .table-bordered > tbody > tr > th:first-child,
.table-scrollable > .table-bordered > tfoot > tr > th:first-child,
.table-scrollable > .table-bordered > thead > tr > td:first-child,
.table-scrollable > .table-bordered > tbody > tr > td:first-child,
.table-scrollable > .table-bordered > tfoot > tr > td:first-child {
    border-left: 0;
}
.table-scrollable > .table-bordered > thead > tr > th:last-child,
.table-scrollable > .table-bordered > tbody > tr > th:last-child,
.table-scrollable > .table-bordered > tfoot > tr > th:last-child,
.table-scrollable > .table-bordered > thead > tr > td:last-child,
.table-scrollable > .table-bordered > tbody > tr > td:last-child,
.table-scrollable > .table-bordered > tfoot > tr > td:last-child {
    border-right: 0;
}
.table-scrollable > .table-bordered > thead > tr:last-child > th,
.table-scrollable > .table-bordered > tbody > tr:last-child > th,
.table-scrollable > .table-bordered > tfoot > tr:last-child > th,
.table-scrollable > .table-bordered > thead > tr:last-child > td,
.table-scrollable > .table-bordered > tbody > tr:last-child > td,
.table-scrollable > .table-bordered > tfoot > tr:last-child > td {
    border-bottom: 0;
}

/***
Bootstrap Tables
***/
.table thead > tr > th {
    border-bottom: 0;
}
.table tbody tr.active td,
.table tbody tr.active th {
    background-color: #e9e9e9 !important;
}
.table tbody tr.active:hover td,
.table tbody tr.active:hover th {
    background-color: #e1e1e1 !important;
}
.table-striped tbody tr.active:nth-child(odd) td,
.table-striped tbody tr.active:nth-child(odd) th {
    background-color: #017ebc;
}
@media (max-width: 768px) {
    .dataTables_wrapper .dataTables_length .form-control,
    .dataTables_wrapper .dataTables_filter .form-control {
        display: inline-block;
    }
    .dataTables_wrapper .dataTables_info {
        top: 17px;
    }
    .dataTables_wrapper .dataTables_paginate {
        margin-top: -15px;
    }
}
@media (max-width: 480px) {
    .dataTables_wrapper .dataTables_filter .form-control {
        width: 175px !important;
    }
    .dataTables_wrapper .dataTables_paginate {
        float: left;
        margin-top: 20px;
    }
}

/***Table****/
.table {
    th {
        line-height: 1.4;
    }
    .table-summary {
        margin: 0;
        font-size: 20px;
    }
    .table-subtitle {
        margin: 0;
        color: @B600;
    }
}
.table-bordered {
    border: none;
    tr {
        th {
            border-width: 0 !important;
        }
    }
}
.table-striped {
    tbody {
        tr:hover {
            th,
            td {
                background: @B050 !important;
            }
        }
    }
}
.table-hover {
    tr {
        &:hover {
            td {
                background: @B050;
            }
        }
    }
}
.table-fixed {
    table-layout: fixed;
    td,
    td div {
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
.table-custom {
    th,
    td {
        padding: 10px 20px !important;
        white-space: normal;
        word-wrap: break-word;
    }
    clear: inherit !important;
    a {
        color: @H500;
        &:hover,
        &:focus {
            color: @H400;
        }
    }
    .disabled {
        color: @B600;
        text-decoration: none;
        &:hover,
        &:focus {
            color: @B600;
        }
    }
    thead th {
        background: @B050 !important;
        font-size: 14px !important;
    }
    th {
        font-weight: 100 !important;
        &.title {
            span {
                font-size: 18px;
                color: @H500;
            }
        }
    }
    .title {
        font-size: 16px;
        font-weight: bold;
    }
    tbody td {
        border-width: 1px 0 0 !important;
    }
    tbody td.link,
    .high {
        color: @H500;
        p {
            margin: 0;
            span {
                color: @B900;
            }
        }
    }
}
.table-scrollable {
    margin: 0 !important;
    border-width: 1px 1px 1px 1px;
    border-color: @B100;
}
.pagination {
    .active {
        a {
            background: @B000 !important;
            color: @B900 !important;
            border-width: 1px 1px 2px 1px;
            border-style: solid;
            border-color: @B300 @B300 @H500 @B300 !important;
        }
    }
    a:hover {
        background: @B000 !important;
        color: @B900 !important;
        border-width: 1px 1px 2px 1px;
        border-style: solid;
        border-color: @B300 @B300 @H500 @B300 !important;
    }
}
.table-summary-wrapper {
    .table-scrollable {
        min-height: 118px;
    }
    .dataTables_processing {
        top: 60%;
    }
}
.table-toolbar {
    background: #f5f5f5;
    padding: 18px;
    .btn {
        background: none;
        border: 1px solid #f5f5f5;
    }
    .open {
        .dropdown-toggle {
            border-color: #9f9f9f !important;
            border-bottom: none !important;
        }
    }
    .btn-default:hover {
        border: 1px solid #ddd;
    }
    .right {
        float: right;
    }
    .input-search {
        input {
            height: auto !important;
            padding: 7px 12px;
            font-size: 14px !important;
        }
    }
    .label {
        color: #575757;
        display: inline-block;
        font-size: 14px;
        font-weight: 100;
        padding: 11px 4px;
        vertical-align: middle;
    }
}


.table-form {
    th,
    td {
        border: none !important;
    }
    tbody {
        th {
            text-align: right;
        }
    }
}
